/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.WebIDE.ejb.sessions;

import java.util.List;
import javax.ejb.Local;
import org.WebIDE.ejb.entities.Replies;
import org.WebIDE.ejb.entities.Topics;
import org.WebIDE.ejb.sessions.exceptions.*;

/**
 *
 * @author huy
 */
@Local
public interface RepliesFacadeLocal {

public void create(Replies replies) throws PreexistingEntityException, RollbackFailureException, Exception;

public void edit(Replies replies) throws NonexistentEntityException, RollbackFailureException, Exception;

    void remove(Replies replies);

    Replies find(Object id);

    List<Replies> findAll();

    int getRepliesCount(Topics topicID);
    
    List<Object> getLastModified(Topics topicID);
    
    List<Replies> getReplies(Topics topicID);
    
    int getMaxID();
}
